package com.traval.goods.models;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * TTravalticket entity. @author MyEclipse Persistence Tools
 */

public class TTravalticket implements java.io.Serializable {

	// Fields

	private Integer tid;
	private String scenicSpotName;
	private String scenicSpotAddress;
	private Timestamp scenicSpotOpenTime;
	private Timestamp scenicSpotCloseTime;
	private Double price;
	private Set<TGoods> TGoodses = new HashSet<TGoods>();

	// Constructors

	public Set getTGoodses() {
		return this.TGoodses;
	}

	public void setTGoodses(Set TGoodses) {
		this.TGoodses = TGoodses;
	}

	/** default constructor */
	public TTravalticket() {
	}

	/** minimal constructor */
	public TTravalticket(String scenicSpotName, String scenicSpotAddress, Double price) {
		this.scenicSpotName = scenicSpotName;
		this.scenicSpotAddress = scenicSpotAddress;
		this.price = price;
	}

	/** full constructor */
	public TTravalticket(String scenicSpotName, String scenicSpotAddress, Timestamp scenicSpotOpenTime,
			Timestamp scenicSpotCloseTime, Double price, Set TGoodses) {
		this.scenicSpotName = scenicSpotName;
		this.scenicSpotAddress = scenicSpotAddress;
		this.scenicSpotOpenTime = scenicSpotOpenTime;
		this.scenicSpotCloseTime = scenicSpotCloseTime;
		this.price = price;
		this.TGoodses = TGoodses;
	}

	// Property accessors

	public Integer getTid() {
		return this.tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public String getScenicSpotName() {
		return this.scenicSpotName;
	}

	public void setScenicSpotName(String scenicSpotName) {
		this.scenicSpotName = scenicSpotName;
	}

	public String getScenicSpotAddress() {
		return this.scenicSpotAddress;
	}

	public void setScenicSpotAddress(String scenicSpotAddress) {
		this.scenicSpotAddress = scenicSpotAddress;
	}

	public Timestamp getScenicSpotOpenTime() {
		return this.scenicSpotOpenTime;
	}

	public void setScenicSpotOpenTime(Timestamp scenicSpotOpenTime) {
		this.scenicSpotOpenTime = scenicSpotOpenTime;
	}

	public Timestamp getScenicSpotCloseTime() {
		return this.scenicSpotCloseTime;
	}

	public void setScenicSpotCloseTime(Timestamp scenicSpotCloseTime) {
		this.scenicSpotCloseTime = scenicSpotCloseTime;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}


}